package chapter_17_command.classic2;

/**
 * @author yaochenglong
 * @date 2017/10/20
 */
public class Invoker {

    private AbstractCommand command;

    public Invoker() {
    }

    //接收命令
    public void setCommand(AbstractCommand command) {
        this.command = command;
    }

    //执行命令
    public void action(){
        command.execute();
    }
}
